package com.feng.zshop.backend.dao;

import com.feng.zshop.backend.param.CustomerParam;
import com.feng.zshop.common.exception.DaoException;
import com.feng.zshop.model.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Lee
 * @date 2019/2/24
 */
public interface CustomerDao {

    List<Customer> listByParam(CustomerParam customerParam);

    void updateStatus(@Param("id") Integer id,@Param("valid") Integer valid) throws DaoException;

    Customer getCustomerById(Integer id);

}
